import request from '#/utils/requestAbort.js';

export function getRegionList(marketId: string) {
  return request(`/disclosure/longTermAllocationFactor/regionList/${marketId}`, {
    method: 'GET',
  });
}

export function deleteWf(id: string) {
  return request(`/disclosure/longTermAllocationFactor/deleteWf/${id}`, {
    method: 'GET',
  });
}

export function addWf(params: any) {
  return request('/disclosure/longTermAllocationFactor/addWf', {
    method: 'POST',
    data: params,
  });
}

export function updateWf(params: any) {
  return request('/disclosure/longTermAllocationFactor/updateWf', {
    method: 'POST',
    data: params,
  });
}

export function getWfList(params: any) {
  return request('/disclosure/longTermAllocationFactor/wfList', {
    method: 'POST',
    data: params,
  });
}

export function queryViewData(params: any) {
  return request('/disclosure/longTermAllocationFactor/queryViewData', {
    method: 'POST',
    data: params,
  });
}

export function queryViewDataForEveryDay(params: any) {
  return request('/disclosure/longTermAllocationFactor/queryViewDataForEveryDay', {
    method: 'POST',
    data: params,
  });
}
